package ru.spb.osll.myfit.util;

import static org.junit.Assert.assertEquals;

import java.io.IOException;

import org.junit.Test;

public class StringOutputStreamTest {
	@Test
	public void testStringPrintStream() throws IOException {
		StringOutputStream stream = new StringOutputStream();
		stream.write(new String("str").getBytes());
		assertEquals("str", stream.toString());
	}
}
